'use strict';

let Koa = require('koa');
let bodyParser =require('koa-bodyparser');
let staticRas = require('koa-static');
let templating = require('./templating');
let controllers = require('./controllers');

let app = new Koa();

app.use(staticRas(__dirname+'/static'));
app.use(bodyParser());
app.use(templating);
app.use(controllers());


let port=3001;
app.listen(port);

console.log(`http://localhost:${port}`);